Special Character Processing and special symbols in mybatis xml, mybatisxml
The following describes how to process special characters in mybatis xml. The specific content is as follows:
1. CDATA zone:
It is called character data, with " "ends. embed
1. entity reference
In XML, all valid characters between the start and end tags are faithfully transmitted to XML for processing.Program. To avoid confusion between character data and some special symbols used in the tag, XML also provides some
When writing xml configuration today, one of the strings contains & characters and the result is incorrect:
The reason is that XML and HTML are the same. This type of special symbols must be used with escape characters...
The final solution
When writing an XML file, some values are marked with a special symbol, and the "Here are five pre-defined entities in the XML document:> > Greater than sign & and' ' Single quotation mark" "Double quotation marksThe entity must begin
1. What is XML?XML developers will tell you that XML is not actually a language, but a system used to define other languages. Maybe you have already heard of it. Maybe you have even tried some of these languages yourself ?? For example, Microsoft
Original: WPF XAML special characters (less than, greater than sign, quotation marks, & symbols)XAML is limited by XML rules. For example, XML pays special attention to special characters, such as & If you try to set an element's content using
XML and database Author: onecenter
By Ronald
Abstract: This paper briefly discusses the relationship between XML and databases, and lists some software that can use databases to process XML documents. Although I am not going to introduce these
xml| syntax
Tools for creating XML filesAn XML file, like an HTML file, is actually a text file. It is clear that you will soon understand that the most common tool for creating XML files is "Notepad", just like HTML. In addition to Notepad, there
TESTIn the XML map SQL file, in many cases will use the greater than, less than the special symbols, such as, if you do not control is not compiled through, this time need to use the symbols are described, and the symbols are not parsed, In fact,
xml| syntax Now let's use Notepad to create our XML file. First look at an XML file:
Example 1
〈?xml version= "1.0" encoding= "gb2312"?ResourcesBooksName 〉xml Introductory Refinement 〈/nameAuthor John 〈/authorPrice currency unit = "RMB"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.